<HTML>
<HEAD>
<meta charset="UTF-8">
<title>CardBrand.fromCode - stripe</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">stripe</a>&nbsp;/&nbsp;<a href="../index.html">com.stripe.android.model</a>&nbsp;/&nbsp;<a href="index.html">CardBrand</a>&nbsp;/&nbsp;<a href="./from-code.html">fromCode</a><br/>
<br/>
<h1>fromCode</h1>
<a name="com.stripe.android.model.CardBrand.Companion$fromCode(kotlin.String)"></a>
<code><span class="keyword">fun </span><span class="identifier">fromCode</span><span class="symbol">(</span><span class="identifier" id="com.stripe.android.model.CardBrand.Companion$fromCode(kotlin.String)/code">code</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">CardBrand</span></a></code>
<h3>Parameters</h3>
<p><a name="code"></a>
<code>code</code> - a brand code, such as <code>Visa</code> or <code>American Express</code>.
See <a href="../-payment-method/-card/brand.html">PaymentMethod.Card.brand</a>.</p>
</BODY>
</HTML>
